class MinigamePawn extends xPawn;

event HitWall (vector HitNormal, actor Wall) {
    local EnyaraPlayerController PC;
    PC = EnyaraPlayerController(level.GetLocalPlayerController());
    if (PC.CurrentFlyingVolume.WallHitKill) {
        PC.PlayerKill();
    }
}

simulated function PostBeginPlay() {
   super.PostBeginPlay();
   LoopAnim(AirStillAnim, 1.0, 0.5);
}

simulated event PlayFalling()
{
   LoopAnim(AirStillAnim, 1.0, 0.5);
}


defaultproperties {
    bDirectHitWall=true
    DrawScale=1.4
     CollisionRadius=15.000000
     CollisionHeight=10.000000
     Mesh=Mesh'SkaarjPack_rc.FlyM'
     AirAnims(0)="Fly"
     AirStillAnim="Fly"
     IdleCrouchAnim="Fly"
     IdleSwimAnim="Fly"
     IdleWeaponAnim="Fly"
     IdleRestAnim="Fly"
     IdleChatAnim="Fly"
     TakeoffAnims(0)="Fly"
     TakeoffAnims(1)="Fly"
     TakeoffAnims(2)="Fly"
     TakeoffAnims(3)="Fly"
     TakeoffStillAnim="Fly"

}
